package com.ihr360.excel.model.dto;


import com.ihr360.commons.model.entity.NumberIdWithTime;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 业务模块注册，用于区分不同的导入业务模块
 *
 * @author richey
 */
@Entity
public class RegistryBusinessModule extends NumberIdWithTime<Long> {

    @Column(length = 40)
    private String name;

    @Column(length = 40, unique = true)
    private String code;

    /**
     * 业务校验服务的地址
     */
    @Column(length = 100)
    private String baseUrl;

    /**
     * 模块权限编码
     */
    @Column(length = 100)
    private String authModuleCode;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public String getAuthModuleCode() {
        return authModuleCode;
    }

    public void setAuthModuleCode(String authModuleCode) {
        this.authModuleCode = authModuleCode;
    }
}
